package com.chartboost.sdk.impl;

import java.util.Iterator;
import java.util.LinkedHashMap;
import java.util.Map;
import java.util.Map.Entry;
import java.util.Set;
import java.util.regex.Pattern;

public class am extends LinkedHashMap<String, Object>
  implements aj
{
  public am()
  {
  }

  public am(String paramString, Object paramObject)
  {
    a(paramString, paramObject);
  }

  public Object a(String paramString)
  {
    return super.get(paramString);
  }

  public Object a(String paramString, Object paramObject)
  {
    return super.put(paramString, paramObject);
  }

  public boolean b(String paramString)
  {
    return super.containsKey(paramString);
  }

  public boolean equals(Object paramObject)
  {
    if (!(paramObject instanceof aj))
      return false;
    aj localaj = (aj)paramObject;
    if (!keySet().equals(localaj.keySet()))
      return false;
    Iterator localIterator = keySet().iterator();
    while (localIterator.hasNext())
    {
      String str = (String)localIterator.next();
      Object localObject1 = a(str);
      Object localObject2 = localaj.a(str);
      if ((localObject1 == null) && (localObject2 != null))
        return false;
      if (localObject2 == null)
      {
        if (localObject1 != null)
          return false;
      }
      else if (((localObject1 instanceof Number)) && ((localObject2 instanceof Number)))
      {
        if (((Number)localObject1).doubleValue() != ((Number)localObject2).doubleValue())
          return false;
      }
      else if (((localObject1 instanceof Pattern)) && ((localObject2 instanceof Pattern)))
      {
        Pattern localPattern1 = (Pattern)localObject1;
        Pattern localPattern2 = (Pattern)localObject2;
        if ((!localPattern1.pattern().equals(localPattern2.pattern())) || (localPattern1.flags() != localPattern2.flags()))
          return false;
      }
      else if (!localObject1.equals(localObject2))
      {
        return false;
      }
    }
    return true;
  }

  public void putAll(Map paramMap)
  {
    Iterator localIterator = paramMap.entrySet().iterator();
    while (localIterator.hasNext())
    {
      Map.Entry localEntry = (Map.Entry)localIterator.next();
      a(localEntry.getKey().toString(), localEntry.getValue());
    }
  }

  public String toString()
  {
    return ac.a(this);
  }
}

/* Location:           E:\android\Toy Defense 2_dex2jar.jar
 * Qualified Name:     com.chartboost.sdk.impl.am
 * JD-Core Version:    0.6.2
 */